// -*- c++ -*-

#version 330 core

layout (location = 0) in vec3 in_pos;
layout (location = 1) in vec3 in_color;
layout (location = 2) in vec3 in_normal;
layout (location = 3) in vec2 in_tex_coords;

out vec3 frag_color;
out vec2 frag_tex_coords;

uniform mat4 m_proj;
uniform mat4 m_model;

void main ()
{
  frag_color = in_color;
  frag_tex_coords = in_tex_coords;
  //
  gl_Position = m_proj * m_model * vec4(in_pos, 1.f);
}
